package morningcat.study.spring.starter1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * XXX
 *
 * @author mengzhang6
 * @date 2018/11/20 12:03
 */
public class Starter2 {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        HelloService helloService = context.getBean("helloService", HelloService.class);
        System.out.println(helloService.hello());
    }
}
